<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">

    </div>
    <script>
        // 待完善，封装起来，增加复用性
        var person = new Object;
        person.name = 'Jack Ma';
        person.age = 60;;
        person.sex = '男';
        person.money = 999999;
        // 对象中的方法
        person.intro = function() {
            console.log(this);
            var str = `name:${person.name}, age: ${person.age}, 
            sex:${person.sex}, money: ${person.money}`;
            var oDiv = document.querySelector('#app');
            oDiv.innerHTML = str;
        };
        person.intro();
    </script>
</body>
</html>